<html>
    <head>
        <title>Kho | QL Nhập</title>
        <link rel="stylesheet" type="text/css" href="<?php echo base_url("web/css/qlnhap.css"); ?>"/>
        <link rel="stylesheet" type="text/css" href="<?php echo base_url("web/css/sach.css"); ?>"/>
        <link rel="stylesheet" type="text/css" href="<?php echo base_url("web/css/thoitrang.css"); ?>"/>
        <script language="javascript" src="<?php echo base_url("web/js/jquery.js"); ?>"></script>
        <script language="javascript" src="http://ajax.Googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
        <script language="javascript" src="<?php echo base_url("web/js/sach.js"); ?>"></script>
    </head>
    <body>
        <div id="header">
            <h1 align="center">DEV - VITBAY.VN</h1>
        </div>
        <div>
            <?php echo $calendar; ?>
        </div>
        <div id="menu">
            <a href="<?php echo site_url("home"); ?>">Home</a>|
            <a href="qlnhap.php">Kho</a>|
            <a href="">Thêm mới sản phẩm</a>|
            <a href="">Danh sách nhà cung cấp</a>|
            <a href="baocao.php">Báo cáo <img src='<?php echo base_url("img/new.gif"); ?>' height='15px' width='40px'/></a>
        </div>
        <div align="right" style="margin-right: 40px;">
            <a href="<?php echo site_url("home/add_product"); ?>"><img src="<?php echo base_url("web/photos/add.png"); ?>" width="50px" height="50px"/></a>
        </div>
        <div class="infosach" style="clear: both; margin-top: 50px;">
            <div id="infotinhocs">
                <table id="tableinfo" border="1" align="center">
                    <tr>
                        <td>ID</td>
                        <td>Tên sách</td>
                        <td>Số lượng</td>
                        <td>Giá bìa</td>
                        <td>Giá bán</td>
                        <td>Tác giả</td>
                        <td>Picture</td>
                        <td>NXB</td>
                        <td>Năm XB</td>
                        <td>Loại sách</td>
                        <td>Ngày nhập</td>
                        <td>Mô tả</td>
                    </tr>
                    <?php
                    for ($i = 0; $i < count($id); $i++) {
                        $url = site_url("home/view_all_info/" . $id[$i]);
                        echo "
                        <tr class='info'>
                            <td><a href='" . $url . "'>" . $id[$i] . "</a></td>
                            <td>" . $ten[$i] . "</td>
                            <td>" . $soluong[$i] . "</td>
                            <td>" . $gia[$i] . "</td>
                            <td>" . $giaban[$i] . "</td>
                            <td>" . $tacgia[$i] . "</td>
                            <td>" . $picture[$i] . "</td>
                            <td>" . $nxb[$i] . "</td>
                            <td>" . $namxb[$i] . "</td>
                            <td>" . $loaisach[$i] . "</td>
                            <td>" . $ngaynhap[$i] . "</td>
                            <td>" . $mota[$i] . "...</td>    
                        </tr>
                    ";
                    }
                    ?>
                </table>
                <div>

                </div>
            </div>
        </div>
    </body>
</html>